﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace MechWars
{
    class Camera
    {
        public float aspectRatio;
        public Vector3 postion;
        public Vector3 focalPoint;
        public float fov;
        public void update()
        {
            JMesh.staticViewMatrix = Matrix.CreateLookAt(postion, focalPoint, Vector3.Up);
            JMesh.staticProjectionMatrix = Matrix.CreatePerspectiveFieldOfView(fov, aspectRatio, 0.1f, 1000f);
        }
    }
}
